package com.xxl.shoppingapp.ui.main;


import com.xxl.shoppingapp.R;
import com.xxl.shoppingapp.base.BaseFragment;
import com.xxl.shoppingapp.ui.cart.CartFragment;
import com.xxl.shoppingapp.ui.home.HomeFragment;
import com.xxl.shoppingapp.ui.mine.MineFragment;

/**
 * Title: MainTab.java
 * Description:
 * Copyright (c) 版权所有请勿抄袭 2018
 * Created DateTime: 2018/4/10 14:34
 * Created by xuelianx.
 */
public enum MainTab {
    APPLICATION(0, R.string.application, R.mipmap.tab_icon_main, HomeFragment.class),
    MINE(1, R.string.cart, R.mipmap.tab_icon_cart, CartFragment.class),
    MORE(2, R.string.mine, R.mipmap.tab_icon_mine, MineFragment.class);

    private int idx;
    private int resName;
    private int resIcon;
    private Class<? extends BaseFragment> clz;


    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    MainTab(int idx, int resName, int resIcon, Class<? extends BaseFragment> clz) {
        this.idx = idx;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
    }

    public int getResName() {

        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<? extends BaseFragment> getClz() {
        return clz;
    }

    public void setClz(Class<? extends BaseFragment> clz) {
        this.clz = clz;
    }
}
